<div class="d1">
<div class="right">
    <form method="post" action="<?=Portal_Urls::ajax_upload_url()?>" enctype="multipart/form-data" id="frm2" class="frm2">
    <div class="line">个人资料</div>
    <div class="pos">
        <div class="sp1">
            <span class="sp2">上传照片</span>
            <input type="file" size="1" class="fil" name="file" id="fil"/>
            <img class="ig1" id="ig1" src="<?php echo $user['head_pic_path'];?>" alt="<?php echo $user['real_name'];?>" />
        </div>
        <label>姓名:</label>
        <span><?php echo $user['real_name'];?></span>
        <a href="javascript:void(0);" onclick="edit()" id="a_edit" class="a_edit" <?php if($error_item){?>style="display:none;"<?php }?>>编辑资料</a>
    </div>
    </form>
    <form action="" method="post" class="fm1">
    <div>
        <label>英文名:</label>
        <span <?php if(!$error_item){?>class="show"<?php }else{?>class="hide"<?php }?>><?php echo $user['english_name'];?></span>
        <span <?php if(!$error_item){?>class="hide"<?php }else{?>class="show"<?php }?>><input name="english_name" value="<?php echo $user['edit_english_name'];?>" /></span>
    </div>
    <div>
        <label>工号:</label>
        <span><?php echo $user['user_code'];?></span>
    </div>
    <div>
        <label>手机:</label>
        <span <?php if(!$error_item){?>class="show"<?php }else{?>class="hide"<?php }?>><?php echo $user['cellphone'];?></span>
        <span <?php if(!$error_item){?>class="hide"<?php }else{?>class="show"<?php }?>><input name="cellphone" value="<?php echo $user['edit_cellphone'];?>" /></span>
    </div>
    <div>
        <label>公司电话:</label>
        <span <?php if(!$error_item){?>class="show"<?php }else{?>class="hide"<?php }?>><?php echo $user['office_phone'],$user['office_phone']&&$user['office_phone_ex']?'-':' ',$user['office_phone_ex'];?></span>
        <span <?php if(!$error_item){?>class="hide"<?php }else{?>class="show"<?php }?>><input class="inp1" name="office_phone" value="<?php echo $user['edit_office_phone'];?>" />-<input  class="inp2" name="office_phone_ex" value="<?php echo $user['edit_office_phone_ex'];?>" /></span>
    </div>
    <div>
        <label>公司邮箱:</label>
        <span><?php echo $user['office_mail'];?></span>
        <!--<span class="hide"><input name="office_mail" value="<?php echo $user['office_mail'];?>" /></span>-->
    </div>
    <div class="line1"></div>
    <div><label>部门:</label><span><?php echo $user['bu_name'];?></span></div>
    <div><label>职位:</label><span><?php echo $user['position_name'];?></span></div>
    <div><label>直属上级:</label><span><?php echo $derector_direct_yes['parent_name'];?></span></div>
    <?php if($sub_users){?>
    <div>
        <label>直属下级:</label>
        <?php foreach($sub_users as $one){?>
        <span><?php echo $one['real_name'];?></span>
        <?php }?>
    </div>
    <?php }?>
    <?php if(!empty($derector_direct_no)){?>
    <div>
        <label>虚线主管:</label>
        <?php foreach ($derector_direct_no as $direct){?>
        <span><?php echo $direct['parent_name'];?></span>
        <?php }?>
    </div>
    <?php }?>
    <div class="edit_show" id="edit_show" <?php if(!$error_item){?>style="display:none;"<?php }?>>
        <input type="submit" value="保 存" class="sub"/>
        <a href="javascript:void(0);" onclick="cancel()">取消</a>
    </div>
   <!-- error -->
        <?php if($error_item){?>
       <div class="show" style="color:red;margin-left:10px;">
       <?php foreach($error_item as $val){?>
       <div><?php echo $val;?></div>
       <?php }?>
       </div>
       <?php }?>
    <!-- error -->
    </form>
</div>


<div class="dielog" id="dielog">
    <div class="jcorp" id="jcorp"></div>
    <form action="" class="ff1">
        <div id="dd1" class="dd1">
            <input type="hidden" size="4" id="x1" name="x1" />
            <input type="hidden" size="4" id="y1" name="y1" />
            <input type="hidden" size="4" id="x2" name="x2" />
            <input type="hidden" size="4" id="y2" name="y2" />
            <input type="hidden" size="4" id="w" name="w" />
            <input type="hidden" size="4" id="h" name="h" />


            <!--<input type="text" size="4" id="x1" name="x1" />-->
            <!--<input type="text" size="4" id="y1" name="y1" />-->
            <!--<input type="text" size="4" id="x2" name="x2" />-->
            <!--<input type="text" size="4" id="y2" name="y2" />-->
            <!--<input type="text" size="4" id="w" name="w" />-->
            <!--<input type="text" size="4" id="h" name="h" />-->

            <div id="smldiolog">
                <label>预览图：</label>
            </div>
        </div>
        <input type="button" value="保 存" id="sub1" class="sub1"/>
        <a href="javascript:void(0);" class="cal" id="diocla">取消</a>
    </form>
</div>
<!--遮罩-->
<div class="shade" id="shade">

</div>

</div>
<?php $this->script_block_begin();?>
    <script language="javascript" type="text/javascript">
        var viewPositionUrl = '<?=Portal_Urls::ajax_upload_url()?>';
    </script>
<?php $this->script_block_end();?>